package business.other.punish.impl;

import business.other.punish.QualityPunishInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import other.domain.QualityPunishInfo;
import other.domain.QualityPunishInfoCriteria;
import other.mapper.QualityPunishInfoMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/17.
 */
@Service(value = "qualityPunishService")
public class QualityPunishInfoServiceImpl implements QualityPunishInfoService{
    @Autowired
    QualityPunishInfoMapper qualityPunishInfoMapper;
    @Override
    public List<QualityPunishInfo> getQualityPunishInfo() {
        QualityPunishInfoCriteria criteria = new QualityPunishInfoCriteria();
        criteria.createCriteria().getAllCriteria();
        return qualityPunishInfoMapper.selectByExample(criteria);
    }
}
